Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pattern {date} and {seq} to file path in rolling sink. #297

Closed
wants to merge 1 commit into from

Conversation

GrzegorzRussek
Copy link

You now can use {date} and {seq} to define where date and sequence number will be stored. You can also alter date format by using {date:yyyy-MM-dd} for example.

@nblumhardt
Copy link
Member

Thanks for the PR; we went down this path in the original Serilog.Sinks.RollingFile package, which is still maintained but is now deprecated. It would be interesting to see this approach developed further, but would need to be in a separate package, I don't think we want to take the current file sink in that direction.

@bartelink
Copy link
Member

Closing this on the same basis as #263 (comment) in the interests of having the Issues and PR lists be short and clear

In short: Custom naming/interval multiplier policies are a non-trivial ask that should go through a prototype/fork + feature proposal gate before people invest time in PRs, as it's very frustrating for people implementing them to end up with something that realistically won't be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants